<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<body>

<div class="header">
    <h1 class="page-header">
        Tables Page
    </h1>

</div>
<div id="page-inner">
    <!--<div class="row">
        <div class="col-md-12">
            &lt;!&ndash; Advanced Tables &ndash;&gt;
            <div class="card">
                <div class="card-action">
                    所有权限
                </div>
                <div class="card-content">
                    <div class="table-responsive">
                        <table class="table table-striped table-bordered table-hover" id="dataTables-example">
                            <thead>
                            <tr>
                                <th>编号</th>
                                <th>权限名称</th>
                                <th>权限路径</th>
                                <th>权限等级</th>
                                <th>父级权限</th>
                            </tr>
                            </thead>
                            <tbody>
                            <tr th:each="item : ${auth_list}" th:value="${item.id}">
                                <td th:text="${item.id}"></td>
                                <td th:text="${item.name}"></td>
                                <td th:text="${item.url}"></td>
                                <td th:text="${item.level}"></td>
                                <td th:text="${item.parentsId}"></td>
                            </tr>
                            </tbody>
                        </table>
                        <div class="col-sm-6">
                            <div class="">
                                <ul class="pagination">
                                    <li class="paginate_button disabled">
                                        <a href="#">Previous</a>
                                    </li>
                                    <li class="paginate_button active">
                                        <a href="#">1</a>
                                    </li>
                                    <li class="paginate_button ">
                                        <a href="#">2</a>
                                    </li>
                                    <li class="paginate_button ">
                                        <a href="#">3</a>
                                    </li>
                                    <li class="paginate_button ">
                                        <a href="#">4</a>
                                    </li>
                                    <li class="paginate_button ">
                                        <a href="#">5</a>
                                    </li>
                                    <li class="paginate_button ">
                                        <a href="#">6</a>
                                    </li>
                                    <li class="paginate_button next">
                                        <a href="#">Next</a>
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </div>

                </div>
            </div>
            &lt;!&ndash;End Advanced Tables &ndash;&gt;
        </div>
    </div>-->
    <div class="row">
        <div class="col-md-6">
            <!--   Kitchen Sink -->
            <div class="card" th:each="item : ${auth_p_list}" th:id="'div_parent_'+${item.id}">
                <div class="card-action">
                    <label>Search:<input type="search" class="form-control input-sm" th:value="${item.name}"
                                         th:id="'parent'+${item.id}"></label>
                    <a class="button_my orange_my medium_my" th:onclick="'javascript:updateMsg('+${item.id}+')'">修改</a>
                    <a class="button_my rosy_my medium_my" th:onclick="'javascript:delMsg('+${item.id}+')'">删除</a>
                </div>
                <div style="padding-left: 20px;padding-right: 20px;">
                    <a class="button_my orange_my medium_my">新增权限</a>
                </div>
                <div class="card-content">
                    <div class="table-responsive">
                        <table class="table table-striped table-bordered table-hover">
                            <thead>
                            <tr>
                                <th>#</th>
                                <th>Name</th>
                                <th>Url</th>
                                <th>Leve</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                            <tbody>
                            <tr th:each="item2 : ${item.authorities}">
                                <td th:text="${item2.id}"></td>
                                <td th:text="${item2.name}">Mark</td>
                                <td th:text="${item2.url}">Otto</td>
                                <td th:text="${item2.level}">@mdo</td>
                                <td>
                                    <a class="button_my orange_my small_my"
                                       th:onclick="'javascript:updateSonMsg('+${item2.id}+')'">修改</a>
                                    <a class="button_my rosy_my small_my"
                                       th:onclick="'javascript:delSonMsg('+${item2.id}+')'">删除</a>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
            <!-- End  Kitchen Sink -->
        </div>
    </div>
</div>
</body>

</html>
